$(function() {
    function render() {
        $.ajax({
            type: 'get',
            url: 'http://localhost:3000/api/getinlanddiscount',
            success(res) {
                console.log(res);
                $('.discount-box').html(template('tql',res))
            }
        })
    }
    render()
})